#ifndef THREAD_H
#define THREAD_H

#include <QObject>
#include <QThread>

class Thread : public QThread{
	Q_OBJECT
public:
	Thread();
	void setMessage(const QString &msg);
	void stop();

protected:
	void run();

private:
	QString msg;
	volatile bool stopped;
};

#endif